<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(['middleware' => ['refresh', 'auth:api']], function ($router) {
    Route::post('distribution', 'MaterialController@distribution');
});

Route::post('materiallist', 'MaterialController@list');
Route::post('materialNumAndType', 'MaterialController@materialNumAndType');
Route::post('setType', 'MaterialController@setType');
Route::post('Manual', 'MaterialController@Manual');
Route::post('warehousing', 'MaterialController@warehousing');
Route::post('delmaterial', 'MaterialController@del');
Route::post('distributionlist', 'MaterialController@distributionlist');
Route::post('distributioninfo', 'MaterialController@distributioninfo');
Route::post('distributiondel', 'MaterialController@distributiondel');
Route::post('materialedit', 'MaterialController@edit');
Route::post('deltype', 'MaterialController@delType');

